import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['points'])
  },
  methods: {
    // 根据后端返回的数据判断是否具备操作按钮的权限
    checkPermission(val) {
      return !this.$store.state.user.userInfo.roles.points.includes(val)
    }
  }
}
